<html xmlns="http://www.w3.org/1999/html">
<head>
    <title>HTML5对DOM操作的支持</title>
    <meta charset="UTF-8">
    <script type="text/javascript">
        window.onload = function() {    // 加载事件进行处理
            eles = document.querySelectorAll("p,span"); // 选择指定的元素
            for (x = 0; x < eles.length; x ++) {
                eles[x].innerHTML = "李兴华高薪就业编程训练营：edu.yootk.com";
            }
        }
    </script>
</head>
<p>
<p><div></div><span></span><p><span></span></p></p><div><span></span></div>
</body>
</html>
